// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Web.UI;

using DataModel;


namespace WebLib
{
    class SourceIndexPage : WebPage
    {

        public static void Generate(FamilyInfo info, FileNameBuilder namer)
        {
            // TODO - Doug - 8/3/2006 - Give the user the option to split the index page up into smaller bits

            FileInfo page = namer.GetPageName(FileNameBuilder.Page.SourceIndex);

            using (HtmlTextWriter writer = new HtmlTextWriter(page.CreateText()))
            {
                WriteHeader(writer, "Source Index");
                WriteTitle(writer, "Sources");
                WriteMenu(writer, namer, info);

                writer.RenderEndTag();
                writer.Close();
            }
        }

    }
}
